[data-scope="rating-group"][data-part="control"] {
  display: inline-flex;
}

[data-scope="rating-group"][data-part="item"] {
  width: 20px;
  height: 20px;
  padding: 1px;
}

[data-scope="rating-group"][data-part="item"]:focus {
  outline: 2px solid royalblue;
}

[data-scope="rating-group"] [data-part="star"] {
  color: #bdbdbd;
}

[data-scope="rating-group"][data-part="item"][data-highlighted] [data-part="star"] {
  color: #ffb400;
}

[data-scope="rating-group"][data-part="item"][data-highlighted][data-disabled] [data-part="star"] {
  color: #a1a1a1;
}

[data-scope="rating-group"][dir="rtl"] [data-half] [data-part="star"] {
  transform: scale(-1, 1);
}
